<div class="horizontal-scroll" ba-panel ba-panel-class="with-scroll">
    <form>
        <div class="form-group">
            名称：<input type="text" class="form-control" ng-model="vm.schoolClass.className" placeholder = "输入班级名称">
        </div>
        <div class="form-group ">
            班主任：<ui-select ng-model="vm.withSearchItem.selected"
                       class="btn-group bootstrap-select form-control"
                       ng-disabled="false"
                       append-to-body="true"
                       search-enabled="true">
                <ui-select-match>
                    {{$select.selected.label}}
                </ui-select-match>
                <ui-select-choices repeat="withSearchItem in vm.selectWithSearchItems | filter: $select.search"
                                   refresh="refreshAddresses($select.search)"
                                   refresh-delay="0">
                    <span ng-bind-html="withSearchItem.label"></span>
                </ui-select-choices>
            </ui-select>
        </div>
        <div class="form-group">
            详情：<textarea class="form-control" ng-model="vm.schoolClass.classInfomation" placeholder = "输入班级详情"></textarea>
        </div>
        <button type="button" class="btn btn-primary" ng-click="saveClass()">保存</button>
        <button type="button" class="btn"  ng-click="gobak()">返回上一页</button>
    </form>
</div>